* {
    margin: 0;
    padding: 0;
}
body{
    background-color: #f5f5f5;
}
/* 固定定位 */

.posi{
    display: flex;
    position: fixed;
    right: 0px;
   bottom: 100px;
    height: 300px;
    width: 100px;
    flex-direction: column;
    border: 1px red solid;
    box-shadow: 0px 0px 10px black;
    background-image: url("./CSS小组作业image/风景背景.webp");
    background-repeat: no-repeat;
    background-size: cover;
    display: none;
}
.posi a{
    flex: 1;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    font-weight: 700;
    font-size: 18px;

}
.posi a:hover{
    opacity: 0.8;
    background-color: red;
}


@media (max-width:900px){
    .posi{
        display: none !important;
    }
}

/* 导航栏样式 */
.nav {
    width: 100%;
    background-color: white;
    height: 180px;
    display: flex;
    
    flex-wrap: wrap;
    flex-direction: row;
}

.nav_1{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 60px;
  
    display: flex;
    border-bottom: 1px black solid;
}
.nav_2{
    width: 100%;
        height: 80px;
    display: flex;
   background-color: rgb(224, 169, 66);
   margin: 0;
   padding: 0;

}
.nav_2 img{
    width: 30%;
    height: 100%;
}
.nav .nav_1 span {
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav_2 form{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    justify-content: space-between;
    width: 40%;
}
.nav_2 form img{
    width: 20%;
    height: 100%;
}
.nav .nav_1 a {
    width: 100px;
    display: flex;
    background-color: white;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
}
.nav_2 form input{
    width: 400px;
    height: 30px;
}
.nav .nav_1 a:hover {
    color: orange;
}
@media (max-width:540px){
    .nav{
        height: 50px;
    }
    .nav a{
        width: 15%;
        font-size: 12px;
    }
    .first{
        margin-top: 100px !important;
    }
    .nav_2 form img{
        width: 30%;
    }
    .nav_2{
        height: 50px;
    }
}
/* 第一个幻灯片样式 */

/* 第一个标题 */
.first_title{
    display: flex;
    width: 80%;
    margin: auto;
    height: 80px;
    justify-content: center;
    margin-top: 40px;
    flex-direction: column;
    margin-bottom: 20px;
}
#first_title p {
    padding-top: 20px;
}
/* 设置盒子照片大小 */
.first_image {
    
    width: 100%;
    height: 700px;
    position: relative;
    overflow: hidden;
}


.first_image img {
    animation: fade 1s linear;
    width: 100%;
    height: 100%;

}

/* 设置图片文本 位置，样式*/

.first_text {
    position: absolute;
    right: 100px;
    height: 100%;
    width: 400px;
    display: flex;
    color: white;
    flex-direction: column;
    justify-content: space-evenly;
}

.first_text a {
    text-decoration: none;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: black;
    opacity: 0.7;
    z-index: 2;
}

.first_text a:hover,
.active {
    background: linear-gradient(to right, pink,green);
    font-size: 22px;
    color: white;
   
    font-weight: 1000;
}

@keyframes fade {
    from {
        opacity: 0.7
    }

    to {
        opacity: 1
    }
}
/* 第一个media盒子 */
.first_media{
    width: 100%;
    position: relative;
   overflow: hidden;
    display: flex;
    height: 700px;
   display: none;

}
.first_media_move{
    width: 700%;
    overflow: auto;
    display: flex;
    position: absolute;
    
    left: 0;
    top: 0;
}
.first_media_move a img{
    width: 100%;
    height: 100%;
}
.first_media a{
    height: 100%;
    position: relative;
    text-decoration: none;
    color: white;
}

.first_media span{
    width: 100%;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    z-index: 2;
    bottom: 12px;
    left: 0;
    position: absolute;
}
.first_media_ul{
    width: 15%;
    height: 15%;
    border-radius: 10px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: rgba(0,0,0,0.8);
}
.first_media_ul li{
    
    width: 15%;
    height: 70%;
    display: flex;
    justify-content:center ;
    align-items: center;
    
   
    background-color: white;
    border-radius: 50%;
}

.first_media_ul .first_media_active{
    background-color: orange;
}
@media(max-width:900px){
    .first_image{
        display: none;
    }
    .first_media{
        display: flex;
        height: 200px;
    }
    .first_media_move a{
        height: 200px;
    }
    .first_media_move img{
        width: 100%;
        height: 100%;
    }
}

/* 第二个盒子 */
.LiBai{
    width: 70%;
    height: 300px;
    margin: auto;
    border: 1px black solid;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px black;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-image: url("./图片5.webp");
    background-repeat: no-repeat;
    background-size: cover;
}
.poet{
    width: 30%;
    height: 80%;
    
}
.poem{
    overflow: auto;
    width: 60%;
    height: 80%;
   
    text-align: center;
}
.poet img{
    border-radius: 12px;
    width: 100%;
    height: 100%;

}
.poem h1{
    
    font-size: 30px;
}

/* 第二个media盒子 */

@media(max-width:600px){
    .poem h1{
        font-size: 15px;
    }
    .LiBai{
        width: 100%;
        height: 200px;
    }
}

/*第三幻灯片盒子*/
.box {
    width: 1200px;
    margin: auto;
   
    height: 250px;
    position: relative;
    overflow: hidden;
    
}

.box div img {
    width: 400px;
    height: 250px;

}

.box>div {
    left: 0;
    transition: left 0.6s linear;
    position: absolute;
    top: 0;

}

.box div span {
    position: absolute;
    left: 0;
    top: 0;

    
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-lr;
    width: 25%;
}
.cur .sp1{
    display: none;
}
.text{
    position: absolute;
   bottom: 40px;
   left: 20px;
   display: none;
   color: white;
   
   
}
.text .title{
    font-weight: 700;
    font-size: 30px;
    font-style: italic;
    margin-bottom: 10px;
}
.text .detailed_text{
    font-size: 20px;
}
.cur .text{
    display: block;
} 
/*第三个media盒子*/


.third_media{
    width: 100%;
    height: 500px;
   margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    display: none;
}
.third_media a{
    border-radius: 10px;
    width: 48%;
    display: flex;
 
    text-decoration: none;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    height: 150px;
}
.third_media span{
    text-decoration: none;
    font-weight: 700;
    width: 100%;
    height: 30%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}
.third_media a img{
    border-radius: 10px;
    width: 100%;
    height: 70%;
}
@media (max-width:900px){
    .box{
        display: none;
    }
    .third_media{
        display: flex;
    }
}
.shopping{
    display: flex;
    width: 80%;
    height: 400px;
    margin: auto;
    
    
   
}
.shopping .shopping_nav{
    position: relative;
    flex-wrap: wrap;
    flex-direction: column;
    width: 30%;
    height: 100%;
    justify-content: space-evenly;
    align-items: center;
    display: flex;
}
.shopping_nav a{
    background-color: white;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: flex;
    text-decoration: none;
    font-size: 30px;
    border-bottom: 1px black solid;
    color: black;
    font-size: 30px;
    flex: 1;

}
.shopping_nav a:hover{
    background-color: gray;
}
.shopping_nav a div{
    left: 100%;
    top: 0;
    position: absolute;
    width: 600px;
    height: 100%;
    border: 1px solid black;
    display: none;
}
.shopping_nav a:hover div{
    display: block;
}
.shopping_choose{
    width: 70%;
    height: 100%;
    
    position: relative;
}
.shopping_choose a{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    text-decoration: none;
    animation: fade 1s linear;
}
.shopping_choose a span{
    display: flex;
    position: absolute;
    width: 100%;
    height: 20%;
    justify-content: center;
    align-items: center;

    background-color: rgba(0,0,0,0.8);
    color: white;
    bottom: 0;
    left: 0;
    font-style: italic;
    font-weight: 700;
}
.shopping_choose a img{
    width: 100%;
    height: 100%;
}
.shopping_choose_nav{
    position: absolute;
    width: 100%;
    height: 20%;
    top: 50%;
    display: flex;
    transform: translate(0,-50%);
    justify-content: space-between;
}
.shopping_choose_nav p{
    font-size: 30px;
    background-color: rgba(0,0,0,0.8);
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
}
.shopping_log{
    display: flex;
    flex-direction: row;
    width: 80%;
    height: 400px;
    margin: auto;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
    
}
.shopping_log p:hover{
    color: orange;
}
.shopping_log div{
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    height: 20%;
}
.shopping_log div img{
    width: 30%;
    height: 100%;
}
.shopping_log p{
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 30px;
}


/* 第四个media盒子 */

.fourth_media{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    width: 100%;
    height: 100px;
    display: none;
}
.fourth_media a{
    width: 40%;
    height: 100%;
    display: flex;
}
.fourth_media a img{
    width: 100%;
    height: 100%;
}
@media(max-width:900px){
    .first_title{
        margin-top: 100px;
    }
}
@media(max-width:900px){
    .shopping{
        display: none;
    }
    
    .shopping_log{
        display: none;
    }
    .fourth_media{
        display: flex;
    }
}
/* 结尾 */
.d,.wl{
    height: 300px;
    background-color: rgb(15, 15, 15);
    display: inline-block;
}
.d{
    width: 100%;
    margin-top: 50px;
    position: relative;
}
.wl ul{
    border-top: 2px dotted rgb(172, 164, 164);
}
.wl{
    margin-left: 300PX;
}
.w2{
    position: absolute;
    top: 0;
}
.wl li{
    color: gray;
    line-height: 40px;
}
.wl h2{
    color: white;
}
.d2{
    height: 50px;
    background-color: rgb(43, 42, 40);
}
.d2 span{
    color: white;
    display: block;
    font-size: 10px;
    text-align: center;
    line-height: 50px;
}